import fetch from 'common/src/utils/fetch';


/**
 *重考申请列表查询
 */
function getListPage(data) {
  return fetch({
    url: '/api/electionservice/common/fxExamReexam/getStudentReExamCourseListPage',
    method: 'post',
    data
  })
}

/**
 *重考申请
 */
function delayedReExamApply(data) {
  return fetch({
    url: '/api/electionservice/fxExamApply/delayedReExamApply',
    method: 'post',
    data
  })
}

/**
 *重考申请
 */
function addRemark(data) {
  return fetch({
    url: '/api/electionservice/fxExamApply/addRemark',
    method: 'post',
    data
  })
}

/**
 *重考申请(批量)
 */
function delayedReExamApplyBatch(data) {
  return fetch({
    url: '/api/electionservice/fxExamApply/delayedReExamApplyBatch',
    method: 'post',
    data
  })
}

/**
 *撤回申请
 */
function revokeDelayedReExamApply(data) {
  return fetch({
    url: '/api/electionservice/fxExamApply/revokeDelayedReExamApply/'+ data,
    method: 'get',
    data
  })
}

export default {
  getListPage: getListPage,
  addRemark : addRemark,
  delayedReExamApply: delayedReExamApply,
  delayedReExamApplyBatch:delayedReExamApplyBatch,
  revokeDelayedReExamApply:revokeDelayedReExamApply
};
